//
//  HDNewsDefaultTableViewCell.swift
//  Excited
//
//  Created by X140Yu on 6/23/16.
//  Copyright © 2016 X140Yu. All rights reserved.
//

import UIKit

class HDNewsDefaultTableViewCell: UITableViewCell {
    @IBOutlet weak var comeFromLabel: UILabel!
    @IBOutlet weak var digestLabel: UILabel!
    @IBOutlet weak var titleLabel: UILabel!
    
    var news: HDNewsListItem?
    
    func setNewsItem(news: HDNewsListItem) {
        comeFromLabel.text = "来自 \(news.publisher!)"
        digestLabel.text = news.digest!
        titleLabel.text = news.title!
        self.news = news
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
